{% extends 'orgTemplate.html' %}

{% block title %}机构首页 - 慕学在线网{% endblock %}

{% load staticfiles %}

{% block pagePath %}机构首页{% endblock %}

{% block right %}
<div class="right companycenter layout grouping" >
    <div class="head">
        <h1>全部课程</h1>
{#        <a class="green fr more" href="orgCourse.html">查看更多  >  </a>#}
    </div>
    <div class="brief group_list">
    {% for course in courses %}
        <div class="module1_5 box">
            <a href="{% url "courses:courseDetail" course.id %}">
                <img width="214" src="{{ MEDIA_URL }}{{ course.images }}"/>
            </a>
            <div class="des">
                <a href="courseDetail.html"><h2>{{ course.name }}</h2></a>
                <span class="fl">课时：<i class="key">{{ course.learnTimes }}</i></span>
                <span class="fr">参加人数：{{ course.students }}</span>
            </div>
            <div class="bottom">
                <span class="fl">{{ course.Org.name }}</span>
                <span class="star fr  notlogin" data-favid="13"  data-fav-type="4">
                    {{ course.favNum }}
                </span>
            </div>
        </div>
    {% endfor %}
    </div>
</div>

<div class="right companycenter layout" >
    <div class="head">
        <h1>机构教师</h1>
{#        <a class="green fr more" href="orgTeacher.html">查看更多  >  </a>#}
    </div>
    {% for teacher in teachers %}
    <div class="diarys">
        <div class="module5 share company-diary-box" style="padding:10px 0;">
            <div class="left">
                <img class="pic" src="{{ MEDIA_URL }}{{ teacher.images }}"/>
                <p>昵称：{{ teacher.name }}</p>
            </div>
            <div class="right">
                <div class="top">
                    <div class="fl">
                        <a href="{% url "orgs:teacherDetail" teacher.id %}"><h1>特长:{{ teacher.points }}</h1></a>
                        <span>发表于：{{ teacher.addTime }}</span>
                    </div>
                </div>
{#                <div class="middle" style="border-bottom:0;">课程介绍</div>#}
            </div>
        </div>
    </div>
    {% endfor %}
</div>

<div class="right companycenter layout" >
    <div class="head">
        <h1>机构介绍</h1>
{#        <a class="green fr more" href="orgDesc.html">查看更多  >  </a>#}
    </div>
    <div class="cont">
        {% autoescape off %}
        {{ org.desc }}
        {% endautoescape %}
{#        <a href="/company/desc/22/"><span class="green">[查看更多]</span></a>#}
    </div>
</div>
{% endblock %}